<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
?>
<form action="<?php echo JRoute::_('index.php?option=com_products&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" enctype="multipart/form-data" id="helloworld-form" class="form-validate">
	<div class="width-60 fltlft">
	<fieldset class="adminform">
		<legend>产品</legend>
		<ul class="adminformlist">
			<li><label id="jform_name-lbl" for="jform_Filedata" class="hasTip" title="名称::产品图片">产品图片</label><input type="file" id="file-upload" name="Filedata" /></li>	 
<?php foreach($this->form->getFieldset() as $field): ?>
			<li><?php echo $field->label;echo $field->input;?></li>
<?php endforeach; ?>
		</ul>
	</fieldset>
	</div>
	<div class="width-40 fltrt">
	<fieldset class="adminform">
		<legend>图片</legend>
	<?php if ($this->item->thumbnail){?>
		<img alt="<?php echo $this->item->name; ?>" src="<?php echo COM_MEDIA_BASEURL.$this->item->thumbnail; ?>"/>
	<?php }else{?>
		<img alt="未上传" src="<?php echo COM_MEDIA_BASEURL.'default.jpg'; ?>"/>
	<?php }?>
	</div>
	</fieldset>
	<div>
		<input type="hidden" name="task" value="helloworld.edit" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form>
